home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 25 / Cream of the Crop 25.iso / utility / ffe101.zip / SOUND.SWG / 0010_GF1 PATCH.pas < prev    next >
Pascal/Delphi Source File  |  1996-09-04  |  4KB  |  79 lines

  1. --------S-GF1 PATCH-------------------------
  2.  
  3. The  GF1 Patch files are multipart sound files for the Gravis Ultrasound
  4. sound  card  to  emulate  MIDI sounds  in  high  quality. Each Patch can
  5. consist  of  many  samples (for example,  a  string ensemble consists of
  6. Violin,  Viola,  Cello, Bass) which are  played depending on the note to
  7. play. A patch can also contain a part to be played before the loop and a
  8. part to be played after the tone has been released.
  9.  
  10. OFFSET              Count TYPE   Description
  11. 0000h                  12 char   ID='GF1PATCH110'
  12. 000Ch                  10 char   Manufacturer ID
  13. 0018h                  60 char   Description of the contained Instruments
  14.                                  or copyright of manufacturer.
  15. 0054h                   1 byte   Number of instruments in this patch
  16. 0055h                   1 byte   Number of voices for sample
  17. 0056h                   1 byte   Number of output channels
  18.                                  (1=mono,2=stereo)
  19. 0057h                   1 word   Number of waveforms
  20. 0059h                   1 word   Master volume for all samples
  21. 005Bh                   1 dword  Size of the following data
  22. 0060h                  36 byte   reserved
  23.  
  24. Following  this  header, the instruments  with  their headers follow. An
  25. instrument  header contains the name and other data about one instrument
  26. contained within the patch.
  27.  
  28. OFFSET              Count TYPE   Description
  29. 0000h                   1 word   Instrument number. ?Maybe the MIDI instrument
  30.                                  number?. In the Gravis patches, this is 0, in
  31.                                  other patches, I found random values.
  32. 0002h                  16 char   ASCII name of the instrument.
  33. 0012h                   1 dword  Size of the whole instrument in bytes.
  34. 0016h                   1 byte   Layers. Needed for whatever.
  35. 0017h                  40 byte   reserved
  36.  
  37. About  the patch, I don't know  anything. Maybe somebody could enlighten
  38. me. Each patch record has the following format :
  39.  
  40. OFFSET              Count TYPE   Description
  41. 0000h                   7 char   Wave file name
  42. 0007h                   1 byte   Fractions
  43. 0008h                   1 dword  Wave size.
  44.                                  Size of the wave digital data
  45. 000Ch                   1 dword  Start of wave loop
  46. 0010h                   1 dword  End of wave loop
  47. 0012h                   1 word   Sample rate of the wave
  48. 0014h                   1 word   Minimum frequency to play the wave
  49. 0016h                   1 word   Maximum frequency to play the wave
  50. 0018h                   1 dword  Original sample rate of the wave data
  51. 001Ch                   1 int    Fine tune value for the wave
  52. 001Eh                   1 byte   Stereo balance, values unknown**
  53. 001Fh                   6 byte   Filter envelope rate
  54. 0025h                   6 byte   Filter envelope offse
  55. 002Bh                   1 byte   Tremolo sweep
  56. 002Ch                   1 byte   Tremolo rate
  57. 002Dh                   1 byte   Tremolo depth
  58. 002Fh                   1 byte   Vibrato sweep
  59. 0030h                   1 byte   Vibrato rate
  60. 0031h                   1 byte   Vibrato depth
  61. 0032h                   1 byte   Wave data, bitmapped
  62.                                    0 - 8/16 bit wave data
  63.                                    1 - signed/unsigned data
  64.                                    2 - de/enable looping
  65.                                    3 - no/has bidirectional looping
  66.                                    4 - loop forward/backward
  67.                                    5 - Turn envelope sustaining off/on
  68.                                    6 - Dis/Enable filter envelope
  69.                                    7 - reserved
  70. 0033h                   1 int    Frequency scale, whatever that means
  71. 0035h                   1 word   Frequency scale factor
  72. 0037h                  36 byte   Reserved
  73.  
  74. EXTENSION:PAT
  75. OCCURENCES:PC
  76. PROGRAMS:Patch Maker
  77. SEE ALSO:VOC,WAVe
  78.  
  79.